/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lily
 * Date: 2024-10-13
 * Time: 22:30
 */
public class test {
    public static void main(String[] args) {
        test_2 test2=new test_2();
        char[][] arr_test={
                {'1','1','0','0','0'},
                {'0','1','0','1','1'},
                {'0','0','0','1','1'},
                {'0','0','0','0','0'},
                {'0','0','1','1','1'}
        };
        System.out.println(test2.solve(arr_test));
    }
}
